package com.pharmacy.MedicineManage.entity;

import java.util.Date;

public class Medicine {
    private Integer id;
    private String name;
    private String code;
    private Double price;
    private String category;
    private String manufacturer;
    private String specification;
    private String description;
    private Integer status;
    private Date createTime;

    // 构造方法
    public Medicine() {}

    public Medicine(String name, String code, Double price, String category,
                    String manufacturer, String specification, String description) {
        this.name = name;
        this.code = code;
        this.price = price;
        this.category = category;
        this.manufacturer = manufacturer;
        this.specification = specification;
        this.description = description;
        this.status = 1;
        this.createTime = new Date();
    }

    // Getter和Setter方法
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getCode() { return code; }
    public void setCode(String code) { this.code = code; }

    public Double getPrice() { return price; }
    public void setPrice(Double price) { this.price = price; }

    public String getCategory() { return category; }
    public void setCategory(String category) { this.category = category; }

    public String getManufacturer() { return manufacturer; }
    public void setManufacturer(String manufacturer) { this.manufacturer = manufacturer; }

    public String getSpecification() { return specification; }
    public void setSpecification(String specification) { this.specification = specification; }

    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }

    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }

    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }
}